package com.example.demo.handler;

import dev.langchain4j.mcp.client.logging.McpLogMessage;
import dev.langchain4j.mcp.client.logging.McpLogMessageHandler;

public class MyLogMessageHandler implements McpLogMessageHandler {
    @Override
    public void handleLogMessage(McpLogMessage mcpLogMessage) {
        // 自定义日志处理逻辑
        System.out.println("MCP 日志: " + mcpLogMessage.logger());
        System.out.println("MCP 日志: " + mcpLogMessage.data());
    }
}
